package com.example.redstarcommerce.cn.dh.user.service;

import com.example.redstarcommerce.cn.dh.common.vo.Result;
import com.example.redstarcommerce.cn.dh.user.pojo.User;

import java.util.List;

/**
 * @ClassName UserService
 * @Author AndyWu
 * @Date 2024-11-01 22:38
 * @Motto 学不死就往死里学
 * @Version 1.0
 */

public interface UserService {
    Result<List<User>> getAll();
    Result<List<User>> getByName(String name, String password);
    Result<Boolean> insertUser(String name, String password);
    Result<Boolean> updateUser(String uid,String name,String password);
    Result<Boolean> deleteUser(String uid);
}
